import { get, post, put, remove } from "./index";

export function page(query) {
  return get("app/page", query);
}

export function oneById(id) {
  return get("app/" + id);
}

export function create(data) {
  return post("app", data);
}

export function update(data) {
  return put("app", data);
}

export function deleteById(id) {
  return remove("app/" + id);
}

export default {
  page,
  oneById,
  create,
  update,
  deleteById,
};
